GtkSearchBar: Mention we don't handle Ctrl+F for the app
authorBastien Nocera <hadess@hadess.net>
Mon, 3 Jun 2013 13:07:07 +0000 (15:07 +0200)
committerBastien Nocera <hadess@hadess.net>
Fri, 14 Jun 2013 17:10:39 +0000 (19:10 +0200)
There's probably an expectation from the app developers that
Ctrl+F or similar common shortcuts for starting a search will
be handled by the widget, when this is not the case. Explicitely
mention it in the docs to avoid confusion.

https://bugzilla.gnome.org/show_bug.cgi?id=701523

gtk/gtksearchbar.c

index db0c5545d37ed27eaba7542e215e2f401d884637..c45b3c54ccbb1b113c6f53a1b358e3afdbe419cd 100644 (file)
@@ -47,7 +47,8 @@
  *
  * For keyboard presses to start a search, events will need to be forwarded
  * from the top-level window that contains the search bar. See
- * gtk_search_bar_handle_event() for example code.
+ * gtk_search_bar_handle_event() for example code. Common shortcuts such as Ctrl+F
+ * should be handled as an application action, or through the menu items.
  *
  * You will also need to tell the search bar about which entry you are
  * using as your search entry using gtk_search_bar_connect_entry().